package com.zhilong;

public class User {
	private int id = 0;
	private String name = null;	
	private int point = 0;
	private int role = 0;
	
	public User(int id, String name)
	{
		this.id = id;
		this.name = name;
	}
	
	public int getId()
	{
		return id;
	}
	
	public String getName()
	{
		return name;
	}
	
	public int getPoint()
	{
		return point;
	}
	
	public void setPoint(int point)
	{
		this.point = point;
	}
	
	public int getRole()
	{
		return role;
	}
	
	public void setRole(int role)
	{
		this.role = role;
	}
	
	public boolean equals(User user)
	{
		return this.id == user.getId();
	}
	
	public String toString()
	{
		return "User: id=" + id + ", name=" + name;
	}
}
